Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@datacamp/waffles-tokens
Advanced tools
Usage documentation is available at [Waffles tokens documentation](https://waffles.datacamp.com/components/tokens/). It is possible to import tokens either with `import tokens from '@datacamp/waffles-tokens'` or individual groups with `import { colors } f
Usage documentation is available at Waffles tokens documentation.
It is possible to import tokens either with import tokens from '@datacamp/waffles-tokens'
or individual groups with import { colors } from '@datacamp/waffles-tokens'
. Thanks to types definitions tokens auto-completion is supported. Other legacy tokens could be imported from @datacamp/waffles-tokens/lib/name-of-legacy-tokens-file
.
This package contains all the design tokens used across Waffles, and also the build methods to generate exposed files with these values.
The new tokens are generated from base-tokens.json. The structure of that file is compatible with Figma Tokens plugin. In the first build step regular JS file (ES module with explicit and default exports) is generated with build:new-tokens
script, assuming lib
directory already exists. It serves as a base for transpiling both ESM and CJS modules (with appropriate build:cjs
and build:esm
scripts). Last step is to generate TS typings with build:types
.
The legacy tokens are for now kept for backward compatibility reasons. All tokens are stored in the /properties
directory as json files. On build, these are deep merged and augmented with the transforms. This full data structure is then passed to the formatters to output different files. This is all orchestrated using Style Dictionary and controlled with the buildLegacyTokens.js
file.
Tokens has been updated to stay in line with Design Guidelines and to be compatible with Figma Tokens plugin.
spatial
group is deprecated
sizing
, spacing
, and zIndex
groupsborder
group is deprecated
borderRadius
groupanimation
group is deprecatedsizing
spacing
borderWidth
opacity
zIndex
borderRadius
border.radius
-> borderRadius.medium
circle
border radius tokencolors
group:
brandFacebook
, brandTwitter
, brandGoogle
, brandLinkedIn
navySubtleTextOnDark
, navySubtleTextOnLight
greyDark
colornavyText
-> navy
greenText
-> greenDarkText
redText
-> redDarkText
orangeText
-> orangeDarkText
yellowText
-> yellowDarkText
blueText
-> blueDarkText
purpleText
-> purpleDarkText
pinkText
-> pinkDarkText
beige100
-> beigeSubtle
beige200
-> beigeLight
beige300
-> beige
beige400
-> beigeMedium
grey100
-> greySubtle
grey200
-> greyLight
grey300
-> grey
grey400
-> greyMedium
breakpoints
group
small
, medium
, large
breakpointsboxShadow
group
thin
, medium
, thick
, xthick
tokensfontFamily
-> fontFamilies
fontSize
-> fontSizes
micro
-> small
small
-> small
base
-> medium
h6
-> small
h5
-> small
h4
-> medium
h3
-> large
h2
-> xlarge
h1
-> xxlarge
huge
tokenfontWeight
-> fontWeights
letterSpacings
-> letterSpacing
base
-> default
mediumHeading
-> tight
largeHeading
-> tight
relaxed
tokenlineHeight
-> lineHeights
default
token and for large amout of mid-sized text use relaxed
base
-> relaxed
heading
-> default
largeHeading
-> default
tight
tokenFAQs
Usage documentation available at [waffles.datacamp.com/component-library/tokens](https://waffles.datacamp.com/component-library/tokens).
We found that @datacamp/waffles-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 42 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.